A, B = map(int, input().split(','))
result = str(A) * B
print(result)